package com.sxx.mallAuth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**视图映射器
 * @Auther: sunxx
 * @Date: 2024/8/13 - 08 - 13 - 20:12
 * @Description: com.sxx.mallAuth.config
 * @version: 1.0
 */
@Configuration
public class MyWebViewConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/login.html").setViewName("/login");
        registry.addViewController("/regist.html").setViewName("/regist");
    }
}
